Get Statement Analysis
This analyses the pdf and generates the report. The response is in a json format.
Header Requirements
- Authorization --required
Body Params
- file --required
- fullname --required
curl example request
curl -X 'POST' 'https://api.manka.tz/api/v1/analysis/2d'
-F fullname=Hussein \
-F 'file=@TigoPesa_7865432_Statement.pdf' \
-H 'Authorization: Bearer XXXXXXXXXXX' \
Response Sample
- Status OK Response
200 OK
{
"total_cash_inflow": 301016.0,
"cash_inflow": {
"bank_to_wallet": {
"total_amout": 0.0,
"percentage_of_total": 0.0
},
"agent_deposit": {
"total_amout": 0.0,
"percentage_of_total": 0.0
},
"p2p_received": {
"total_amout": 0.0,
"percentage_of_total": 0.0
},
"other_cashin_flow": {
"total_amout": 0.0,
"percentage_of_total": 0.0
},
"loan_disbursements": {
"total_amout": 0.0,
"percentage_of_total": 0.0
}
},
"total_cash_outflow": 356344.0,
"cash_outflow": {
"luku": {
"total_amout": 20400.0,
"percentage_of_total": 5.72
},
"p2p_sent": {
"total_amout": 0.0,
"percentage_of_total": 0.0
},
"wallet_to_bank": {
"total_amout": 0.0,
"percentage_of_total": 0.0
},
"bundles": {
"total_amout": 0.0,
"percentage_of_total": 0.0
},
"vcn_purchases": {
"total_amout": 90404.0,
"percentage_of_total": 25.37
},
"agent_withdrawal": {
"total_amout": 0.0,
"percentage_of_total": 0.0
},
"bill_payment": {
"total_amout": 0.0,
"percentage_of_total": 0.0
},
"merchant_payment": {
"total_amout": 40000.0,
"percentage_of_total": 11.23
},
"masterpass": {
"total_amout": 0.0,
"percentage_of_total": 0.0
},
"check_balance": {
"total_amout": 50.0,
"percentage_of_total": 0.01
},
"top_up": {
"total_amout": 0.0,
"percentage_of_total": 0.0
},
"other_cashout_flow": {
"total_amout": 0.0,
"percentage_of_total": 0.0
},
"loan_repayments": {
"total_amout": 0.0,
"percentage_of_total": 0.0
}
}
}
- Bad Request Response
400 Bad Request
message: "<The specific error message>"
- Unprocessable Entity
422 Unprocessable file entity
message: "Unprocessable File Entity"
- Rate Limit Error
429 Rate Limited Error
message: "Rate limited resource",
nexttime:"19876543"
Rate Limiting!
Rate Limited Resource Continous Access will lead to blocking an account.
- Internal Server Error
500 Internal Server Error
message: "An Internal server error",